package testPackage;

import junit.framework.Assert;

import org.junit.Test;
import org.openqa.selenium.By;

import testPackage.Driver.TestsBase;

@SuppressWarnings("deprecation")
public class Test2 extends TestsBase {
	
	  @Test
	  public void StepOnMenu() throws Exception {
		  Page page = new Page(driver);
		    page.LoginToVdma();  
	        page.OpenMail();
	        Assert.assertTrue(driver.findElement(By.xpath("//*[text()='Nachrichten']")).isDisplayed());
	        page.OpenGroups(); 
	        Assert.assertTrue(driver.findElement(By.xpath("//*[text()='Neues aus meinen Gruppen']")).isDisplayed());
	  }
}
